import request from '@/utils/request'

//API常量
const APIS = {
    V1: "/v1"
}

export function listByPage(params) {
    return request({
        url: APIS.V1 + `/system/notice/listByPage`,
        method: 'get',
        params: params
    })
}

export function update(data) {
    return request({
        url: APIS.V1 + `/system/notice/update`,
        method: 'POST',
        data: data
    })
}

export function countUnreadNotice() {
    return request({
        url: APIS.V1 + `/system/notice/countUnreadNotice`,
        method: 'get'
    })
}